package xyz.haodblog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import xyz.haodblog.common.lang.vo.BlogInfo;
import xyz.haodblog.entity.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface BlogMapper extends BaseMapper<Blog> {
    /**
     * 根据分类查询博客
     */
    List<BlogInfo> getBlogByTypeName(String typeName);

}
